# Maintainer:
pkgname=libimobiledevice-glue
pkgver=1.0.0
pkgrel=1
pkgdesc="Library for common code of the libimobiledevice project"
url="https://github.com/libimobiledevice/libimobiledevice-glue"
arch="all"
license="LGPL-2.1-or-later"
makedepends="
	libplist-dev
	"
subpackages="$pkgname-dev"
source="https://github.com/libimobiledevice/libimobiledevice-glue/releases/download/$pkgver/libimobiledevice-glue-$pkgver.tar.bz2"

build() {
	CFLAGS="$CFLAGS -flto=auto" \
	./configure \
		--host=$CHOST \
		--build=$CBUILD \
		--prefix=/usr \
		--disable-static
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
b9bc696ba857e8d58dea83f3333f80fb94a4802bfa458820fdb3575263f317324b33ca14cadcf2d54cbf15df492ccc16c759e33c1b69698f4dbecc8138e6915d  libimobiledevice-glue-1.0.0.tar.bz2
"
